<?php

class helperHolder {
	var $initialized = array();
	
	function __construct($aether) {
		$this->aether = $aether; //Reference to the aether variable
	}
	
	function init() {
		foreach($this->initialized as $name => $init) {
			if(!$init) {
				if(method_exists($this->$name, 'init')) {
					$this->$name->init();
				}
				$this->initialized[$name] = true;
			}
		}
	}

	function add($resource, $name) {
		$this->$name = $resource;
		$this->initialized[$name] = false;
	}
}

//EOF
